//
//  MYSystemConfig.h
//  hehe
//
//  Created by Robin on 2016/10/8.
//  Copyright © 2016年 HolyShit. All rights reserved.
//

#import <Foundation/Foundation.h>

#pragma mark - define

#define MYRealHeight(_h) _h * [MYAppHelper shareHelper].rateOfHeight
#define MYRealWidth(_w) _w * [MYAppHelper shareHelper].rateOfHeight
#define MYFont(_FONTSIZE_) [UIFont systemFontOfSize:_FONTSIZE_]
#define MYBoldFont(_FONTSIZE_) [UIFont boldSystemFontOfSize:_FONTSIZE_]
#define MYImage(_IMAGENAME_) [UIImage imageNamed: _IMAGENAME_ ]
#define MYUrl(_URL_) [NSURL URLWithString: _URL_ ]
#define ScreenWidth [UIScreen  mainScreen].bounds.size.width
#define ScreenHeight [UIScreen mainScreen].bounds.size.height
#define BLACK_COLOR [UIColor blackColor]
#define CLEAR_COLOR [UIColor clearColor]
#define WHITE_COLOR [UIColor whiteColor]
//RGB颜色设置
#define RGBCOLOR(r,g,b) RGBACOLOR(r,g,b,1)
#define RGBACOLOR(r,g,b,a)[UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
// 十六进制颜色设置
#define HEXCOLOR(rgbValue) HEXACOLOR(rgbValue,1)
#define HEXACOLOR(rgbValue,a) [UIColor colorWithRed:((float)(((rgbValue) & 0xFF0000) >> 16))/255.0 green:((float)(((rgbValue) & 0xFF00)>>8))/255.0 blue: ((float)((rgbValue) & 0xFF))/255.0 alpha:(a)]

#pragma mark - system

extern const BOOL IOS10_OR_LATER;
extern const BOOL IOS9_OR_LATER;
extern const BOOL IOS8_OR_LATER;
extern const BOOL IOS7_OR_LATER;

extern const BOOL IS_4_INCH;
extern const BOOL IS_35_INCH;
extern const BOOL IS_47_INCH;
extern const BOOL IS_55_INCH;

extern const CGFloat StatusBarHeight;
extern const CGFloat NavBarHeight;
extern const CGFloat TabbarHeight;

@interface MYSystemConfig : NSObject

@end
